<?php

interface IQueryResult
{

  /**
   *
   * @return void
   */
  public function free();

  /**
   *
   * @return integer
   */
  public function numRows();

  /**
   *
   * @return integer
   */
  public function numCols();

  /**
   *
   * @return array
   */
  public function columnNames();

  /**
   *
   * @return mixed
   */
  public function fetchOne();

  /**
   *
   * @return array
   */
  public function fetchRow($n = null);

  /**
   *
   * @return array
   */
  public function fetchCol($n = null);

  /**
   *
   * @return array
   */
  public function fetchAll();

}

?>